<!DOCTYPE html>
<html lang="ch-cn" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BEATIFUL SECRET</title>

    <link rel="stylesheet" th:href="@{/css/basic.css}">
<!--    <link rel="stylesheet" th:href="@{/css/login.css}">-->
    <link rel="stylesheet" th:href="@{/css/add.css}">
</head>

<body>

<nav>

        <img th:src="@{/img/logo.png}" alt="" class="logo">

    <ul>
        <li><a th:href="@{/user}">用户信息</a></li>
        <li><a th:href="@{/product}">产品表</a></li>
        <li><a th:href="@{/save}">产品录入</a></li>
    </ul>
    <span><a th:href="@{/logout}">退出登录</a></span>
</nav>

    <div class="add login">
        <form th:action="@{/save/saveAddProduct}"  method="post">
            <br>
            <label >产品录入</label>
            <br>
            <span>产品名：</span>
            <input type="text" placeholder="请输入产品名"
                   th:object="${product}" th:field="${product.productName}" value=" ">
            <br>
            <br>
            <span>分类：</span>
            <select name="classfication" th:object="${classification}"
                    th:field="${classification.classificationName}" >
                <option value="water">化妆水</option>
                <option value="clearface">洁面</option>
                <option value="face">面膜</option>
                <option value="cream">乳霜</option>
                <option value="nonemakeup">卸妆</option>
                <option value="makeup">彩妆</option>
                </select>
            <br>
            <br>
            <span>品牌：</span>
            <input type="text" placeholder="请输入品牌"
                   th:object="${brand}" th:field="${brand.brandName}" value=" ">
            <br>
            <br>
            <button type="submit">提交产品</button>
            </form>
            <br>
            <br>
            <br>

            <form th:action="@{/save/saveAddComposition}"
                  th:object="${detailedComposition}"  method="post">
            <label >成分录入</label>
            <br>
            <br>
            <span>产品名：</span>
            <select th:field="*{product}">

                <option th:each="product : ${products}"
                        th:value="${product?.productId}"
                        th:text="${product?.productName}"></option>
            </select>

<!--            <input type="text" placeholder="请输入产品名" th:field="${product.profuctName}"  value=" ">-->
            <br>
            <br>
            <span>成分名：</span>
            <input type="text" placeholder="请输入成分名"
                   th:field="${composition.compositionName}">
            <br>
            <br>
            <span>含量：</span>
            <input type="text" placeholder="请输入含量"
                   th:field="${composition.content}">
            <br>
            <br>
            <button type="submit">提交成分</button>
        </form>

    </div>

<footer>
    <div class="footerMain">
        <span>版权所有 @ xxxx</span>
        <span>备案号: xxxxxxx</span>
        <span>官网: pinzi.vybfi.top</span>
        <span>关于我们</span>

    </div>
</footer>





</body>
</html>